exec

object exec

Wrappers for @actions/exec.

Functions

execCommand
Link copied to clipboard
suspend fun execCommand(command: String, vararg args: String, cwd: Path? = null, env: Map<String, String>? = null, input: <ERROR CLASS>? = null, silent: Boolean = false, outStream: <ERROR CLASS>? = null, errStream: <ERROR CLASS>? = null, windowsVerbatimArguments: Boolean = false, failOnStdErr: Boolean = false, ignoreReturnCode: Boolean = false, delay: Long = 10000, stdoutListener: (<ERROR CLASS>) -> Unit? = null, stderrListener: (<ERROR CLASS>) -> Unit? = null, stdoutLineListener: (data: String) -> Unit? = null, stderrLineListener: (data: String) -> Unit? = null, debugListener: (data: String) -> Unit? = null): Int
Execute a command.
execCommandAndCapture
Link copied to clipboard
suspend fun execCommandAndCapture(command: String, vararg args: String, cwd: Path? = null, env: Map<String, String>? = null, input: <ERROR CLASS>? = null, silent: Boolean = false, outStream: <ERROR CLASS>? = null, errStream: <ERROR CLASS>? = null, windowsVerbatimArguments: Boolean = false, failOnStdErr: Boolean = false, ignoreReturnCode: Boolean = false, delay: Long = 10000, stdoutListener: (<ERROR CLASS>) -> Unit? = null, stderrListener: (<ERROR CLASS>) -> Unit? = null, stdoutLineListener: (data: String) -> Unit? = null, stderrLineListener: (data: String) -> Unit? = null, debugListener: (data: String) -> Unit? = null): ExecResult
Execute a command and capture stdout and stderr.
execShell
Link copied to clipboard
suspend fun execShell(command: String, shell: Shell = defaultShell, cwd: Path? = null, env: Map<String, String>? = null, input: <ERROR CLASS>? = null, silent: Boolean = false, outStream: <ERROR CLASS>? = null, errStream: <ERROR CLASS>? = null, failOnStdErr: Boolean = false, ignoreReturnCode: Boolean = false, delay: Long = 10000, stdoutListener: (<ERROR CLASS>) -> Unit? = null, stderrListener: (<ERROR CLASS>) -> Unit? = null, stdoutLineListener: (data: String) -> Unit? = null, stderrLineListener: (data: String) -> Unit? = null, debugListener: (data: String) -> Unit? = null)
Execute a command using the given or default shell.
execShellAndCapture
Link copied to clipboard
suspend fun execShellAndCapture(command: String, shell: Shell = defaultShell, cwd: Path? = null, env: Map<String, String>? = null, input: <ERROR CLASS>? = null, silent: Boolean = false, outStream: <ERROR CLASS>? = null, errStream: <ERROR CLASS>? = null, failOnStdErr: Boolean = false, ignoreReturnCode: Boolean = false, delay: Long = 10000, stdoutListener: (<ERROR CLASS>) -> Unit? = null, stderrListener: (<ERROR CLASS>) -> Unit? = null, stdoutLineListener: (data: String) -> Unit? = null, stderrLineListener: (data: String) -> Unit? = null, debugListener: (data: String) -> Unit? = null): ExecResult
Execute a command using the given or default shell and capture the output.

Properties

defaultShell
Link copied to clipboard
val defaultShell: Shell
The default shell for the current OS.

Sources

js source
Link copied to clipboard